package com.cmpp.client.util;


import java.io.DataOutputStream;

public class CMPPSend {
    private byte[] sendData;    
    private DataOutputStream out;
    public CMPPSend(DataOutputStream out,byte[] sendData) {
        super();
        this.sendData=sendData;
        this.out=out;
        
    }
    
    public boolean start()throws Exception {
        
        if(out!=null&&null!=sendData){
            System.out.println("******************CMPPSend start。。。******************");
            System.out.println("******************开始发送字节流******************");
            out.write(sendData);
            out.flush();
            System.out.println("******************发送完毕，等待接收线程对响应进行处理*************");
        }
        return true;
    }
}
